package com.neuedu.abst;

/**
 * abstract 修饰的类，抽象类
 *           abstract 不能被 new
 */
public abstract class Animal {

    public String name;
    public double weight;

    public Animal(String name, double weight) {
        this.name = name;
        this.weight = weight;
    }

    public void show(){
        System.out.println( this.name + " 动物在表演1");
        System.out.println( this.name + " 动物在表演2");
        System.out.println( this.name + " 动物在表演3");
        System.out.println( this.name + " 动物在表演4");
    }


    public abstract void eat();






}
